<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>01-vue基本代码</title>
    <!-- 1.引入vue.js -->
    <script src ="lib/vue-2.4.0.js"></script>
</head>

<body>
    
    <div id="app">
        <h1>{{msg}}</h1>
        
    </div>
    
    <script>
        // 声明vue全局对象
        var vue = new Vue({
            //el表示vue的作用标签
            el: "#app",
            data:{
                msg: "hello vue"
            }
        })
        </script>
</body>
</html>